\hypertarget{class_pipe}{
\section{Pipe Class Reference}
\label{class_pipe}\index{Pipe@{Pipe}}
}


{\ttfamily \#include $<$Pipe.h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_pipe_a1b4bddf67bb5a37afbf81a43825a8da7}{Pipe} (\hyperlink{class_location}{Location} $\ast$destination, int capacity, bool Status, int flow, int roadID=0)
\item 
\hyperlink{class_pipe_adb1cfc9368851ec7f282a9608633818b}{Pipe} (int id, \hyperlink{class_location}{Location} $\ast$destination, int capacity, bool Status, int flow)
\item 
virtual \hyperlink{class_pipe_af4519cc3f1f13857a724db7b2220eefa}{$\sim$Pipe} ()
\item 
int \hyperlink{class_pipe_a60ff950e25b9aa867a052df3a6c9e71a}{getId} ()
\item 
int \hyperlink{class_pipe_a6bab52e3668ecab6201181ba0b142bba}{getCapacity} ()
\item 
int \hyperlink{class_pipe_a532515ba8d9f1b1b9c1750beef6e2eb5}{getFlow} ()
\item 
bool \hyperlink{class_pipe_aa975add91a195a161d45e9f24bda0ecc}{getStatus} ()
\item 
\hyperlink{class_location}{Location} $\ast$ \hyperlink{class_pipe_abc423eab68cc7b2a863f99a1b68d0fb2}{getDestination} ()
\item 
void \hyperlink{class_pipe_a2f8fd839229b04d3f486c0683257d194}{setFlow} (int f)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The connection between nodes. For sake of simplicity the same class is used to represent subroads and segments of pipes connecting of the different types of nodes. Subroads are read from the files obtained in openstreetmaps, water pipes are a subset os these, are the ones that connect the nodes of the water network. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_pipe_a1b4bddf67bb5a37afbf81a43825a8da7}{
\index{Pipe@{Pipe}!Pipe@{Pipe}}
\index{Pipe@{Pipe}!Pipe@{Pipe}}
\subsubsection[{Pipe}]{\setlength{\rightskip}{0pt plus 5cm}Pipe::Pipe (
\begin{DoxyParamCaption}
\item[{{\bf Location} $\ast$}]{destination, }
\item[{int}]{capacity, }
\item[{bool}]{Status, }
\item[{int}]{flow, }
\item[{int}]{roadID = {\ttfamily 0}}
\end{DoxyParamCaption}
)}}
\label{class_pipe_a1b4bddf67bb5a37afbf81a43825a8da7}
\hyperlink{class_pipe}{Pipe} endpoint \hyperlink{class_location}{Location}, Capacity, status, current flow (for use on algorithm), road id (not used) \hypertarget{class_pipe_adb1cfc9368851ec7f282a9608633818b}{
\index{Pipe@{Pipe}!Pipe@{Pipe}}
\index{Pipe@{Pipe}!Pipe@{Pipe}}
\subsubsection[{Pipe}]{\setlength{\rightskip}{0pt plus 5cm}Pipe::Pipe (
\begin{DoxyParamCaption}
\item[{int}]{id, }
\item[{{\bf Location} $\ast$}]{destination, }
\item[{int}]{capacity, }
\item[{bool}]{Status, }
\item[{int}]{flow}
\end{DoxyParamCaption}
)}}
\label{class_pipe_adb1cfc9368851ec7f282a9608633818b}
\hypertarget{class_pipe_af4519cc3f1f13857a724db7b2220eefa}{
\index{Pipe@{Pipe}!$\sim$Pipe@{$\sim$Pipe}}
\index{$\sim$Pipe@{$\sim$Pipe}!Pipe@{Pipe}}
\subsubsection[{$\sim$Pipe}]{\setlength{\rightskip}{0pt plus 5cm}Pipe::$\sim$Pipe (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_pipe_af4519cc3f1f13857a724db7b2220eefa}


\subsection{Member Function Documentation}
\hypertarget{class_pipe_a6bab52e3668ecab6201181ba0b142bba}{
\index{Pipe@{Pipe}!getCapacity@{getCapacity}}
\index{getCapacity@{getCapacity}!Pipe@{Pipe}}
\subsubsection[{getCapacity}]{\setlength{\rightskip}{0pt plus 5cm}int Pipe::getCapacity (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_pipe_a6bab52e3668ecab6201181ba0b142bba}
\hypertarget{class_pipe_abc423eab68cc7b2a863f99a1b68d0fb2}{
\index{Pipe@{Pipe}!getDestination@{getDestination}}
\index{getDestination@{getDestination}!Pipe@{Pipe}}
\subsubsection[{getDestination}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Location} $\ast$ Pipe::getDestination (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_pipe_abc423eab68cc7b2a863f99a1b68d0fb2}
\hypertarget{class_pipe_a532515ba8d9f1b1b9c1750beef6e2eb5}{
\index{Pipe@{Pipe}!getFlow@{getFlow}}
\index{getFlow@{getFlow}!Pipe@{Pipe}}
\subsubsection[{getFlow}]{\setlength{\rightskip}{0pt plus 5cm}int Pipe::getFlow (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_pipe_a532515ba8d9f1b1b9c1750beef6e2eb5}
\hypertarget{class_pipe_a60ff950e25b9aa867a052df3a6c9e71a}{
\index{Pipe@{Pipe}!getId@{getId}}
\index{getId@{getId}!Pipe@{Pipe}}
\subsubsection[{getId}]{\setlength{\rightskip}{0pt plus 5cm}int Pipe::getId (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_pipe_a60ff950e25b9aa867a052df3a6c9e71a}
\hypertarget{class_pipe_aa975add91a195a161d45e9f24bda0ecc}{
\index{Pipe@{Pipe}!getStatus@{getStatus}}
\index{getStatus@{getStatus}!Pipe@{Pipe}}
\subsubsection[{getStatus}]{\setlength{\rightskip}{0pt plus 5cm}bool Pipe::getStatus (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_pipe_aa975add91a195a161d45e9f24bda0ecc}
\hypertarget{class_pipe_a2f8fd839229b04d3f486c0683257d194}{
\index{Pipe@{Pipe}!setFlow@{setFlow}}
\index{setFlow@{setFlow}!Pipe@{Pipe}}
\subsubsection[{setFlow}]{\setlength{\rightskip}{0pt plus 5cm}void Pipe::setFlow (
\begin{DoxyParamCaption}
\item[{int}]{f}
\end{DoxyParamCaption}
)}}
\label{class_pipe_a2f8fd839229b04d3f486c0683257d194}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Paulo/git/cal2012t4/water/src/\hyperlink{_pipe_8h}{Pipe.h}\item 
C:/Users/Paulo/git/cal2012t4/water/src/\hyperlink{_pipe_8cpp}{Pipe.cpp}\end{DoxyCompactItemize}
